Re: [Development] New Qt 5.9.1 snapshot available

2017-06-27 Thread Kari Oikarinen

I believe this is https://bugreports.qt.io/browse/QTCREATORBUG-17909

--
Kari

On 28.06.2017 04:07, Vincent Hui wrote:

Hi Akseli,

Why Qt 5.9.1 for MSVC2015 version on Windows is label as "Qt 5.9.1 
MSVC2015 64bit2"? That makes me think Qt 5.9.1 is built by MSVC2015 with 
update 2 not update 3. Qt 5.9.0 for MSVC2015 version on Windows is label 
as "Qt 5.9.0 MSVC2015 64bit3". By the number 3 after "64bit", I think Qt 
5.9.0 is built by MSVC2015 with update 3.


Is Qt 5.9.1 not built by MSVC2015 with update 3?

Br,
Vincent


On Mon, Jun 26, 2017 at 11:28 PM, Akseli Salovaara 
> wrote:


Hi all,

We have a new Qt 5.9.1 snapshot available via online installer. It
is a separate Qt 5.9.1 node, not as an update to Qt 5.9.0, but will
overwrite previous Qt 5.9.1 snapshot. Instructions how to install it
here: https://wiki.qt.io/How_to_get_snapshot_via_online_installer


Content of the snapshot is based on
https://codereview.qt-project.org/197790
, delta to Qt 5.9.0 as an
attachment.

RTA testing is ongoing and excluding fix for
https://bugreports.qt.io/browse/QTBUG-61635
 Android deployment
issue this should be the final Qt 5.9.1 content. So please test the
snapshot & report your effort via
https://wiki.qt.io/Qt59_release_testing


Br,
Akseli


___
Development mailing list
Development@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/development





___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



--
---
Kari Oikarinen
Software Engineer

The Qt Company
Elektroniikkatie 13
90590, Oulu, Finland
kari.oikari...@qt.io
+358 50 5281010
http://qt.io
---
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] New Qt 5.9.1 snapshot available

2017-06-27 Thread Vincent Hui
Hi Akseli,

Why Qt 5.9.1 for MSVC2015 version on Windows is label as "Qt 5.9.1 MSVC2015
64bit2"? That makes me think Qt 5.9.1 is built by MSVC2015 with update 2
not update 3. Qt 5.9.0 for MSVC2015 version on Windows is label as "Qt
5.9.0 MSVC2015 64bit3". By the number 3 after "64bit", I think Qt 5.9.0 is
built by MSVC2015 with update 3.

Is Qt 5.9.1 not built by MSVC2015 with update 3?

Br,
Vincent


On Mon, Jun 26, 2017 at 11:28 PM, Akseli Salovaara 
wrote:

> Hi all,
>
> We have a new Qt 5.9.1 snapshot available via online installer. It is a
> separate Qt 5.9.1 node, not as an update to Qt 5.9.0, but will overwrite
> previous Qt 5.9.1 snapshot. Instructions how to install it here:
> https://wiki.qt.io/How_to_get_snapshot_via_online_installer
>
> Content of the snapshot is based on https://codereview.qt-project.
> org/197790, delta to Qt 5.9.0 as an attachment.
>
> RTA testing is ongoing and excluding fix for https://bugreports.qt.io/
> browse/QTBUG-61635 Android deployment issue this should be the final Qt
> 5.9.1 content. So please test the snapshot & report your effort via
> https://wiki.qt.io/Qt59_release_testing
>
> Br,
> Akseli
>
>
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
>
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] right-to-left mode on Mac

2017-06-27 Thread René J . V . Bertin
Hi Gabriel,

I've taken a quick first look at implementing right-to-left support in 
contextmenus and think it's going to be quite tricky getting the alignment 
right - a process of educated trial and educating error :)
Adding R2L support to my code rendering texted separators was trivial 
(https://github.com/RJVB/osx-integration/commit/a6ca7482e2ffe3c25a82f80312e7b8326b167a1f),
 but for other menu items the point relative to which right-alignment takes 
place depends on factors I haven't yet understood.

The shortcut mnemonics are a different problem, they're drawn as a string, and 
the drawing routine will print them in reverse when R2L mode is selected. 
Probably not the aspect to focus on first and maybe not even that big a deal to 
leave "as is" (in fact, I don't understand why Apple doesn't invert shortcut 
representations, obliging users to change their reading direction to parse the 
indication in the order they'd be entering it.

Cheers,
René
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] ActiveQt Events

2017-06-27 Thread neel patel
Thank you Henry. I will check and keep you updated.

On Tue, Jun 27, 2017 at 5:26 PM, Henry Skoglund  wrote:

> On 2017-06-27 10:54, neel patel wrote:
>
>> Hi All,
>>
>> As I am using "QAxWidget". I took the "webbrowser" example as reference.
>> As I am using "QTabWidget" as mainwindow widget and adding "QAxWidget" as
>> tab widget. Below is the code for reference.
>>
>>
>>  m_tabWidget = new QTabWidget(mainwindow);
>>
>>  m_mainGridLayout = new QGridLayout(m_tabWidget);
>>  m_mainGridLayout->setContentsMargins(0, 0, 0, 0);
>>
>>  m_MainTab = new QWidget(m_tabWidget);
>>  m_tabGridLayout = new QGridLayout(m_MainTab);
>>  m_tabGridLayout->setContentsMargins(0, 0, 0, 0);
>>
>>  m_activeX = new WebAxWidget(m_MainTab);
>>  m_activeX->setControl(QStringLiteral("{8856F961-340A-11D0-
>> A96B-00C04FD705A2}"));
>>  m_activeX->setObjectName(QStringLiteral("WebBrowser"));
>>  m_activeX->setFocusPolicy(Qt::StrongFocus);
>>
>>  m_tabGridLayout->addWidget(m_activeX, 0, 0, 1, 1);
>>  m_tabWidget->addTab(m_MainTab, QString());
>>
>>  mainwindow->setCentralWidget(m_tabWidget);
>>
>> class WebAxWidget : public QAxWidget
>> {
>> public:
>>
>>  WebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0)
>>  : QAxWidget(parent, f)
>>  {
>>  }
>> }
>>
>>
>>
>> I want to receive events like NewWindow3, NewWindow2, BeforeNavigate2
>> with Qt. As such there is no signal available in "QAxWidget". How can we
>> receive those signals from windows COM interface ?
>>
>> Let me know reference or pointers so that i can implement and suggest in
>> above code.
>>
>> Thanks in Advance.
>>
>
> Hi, you can receive those events through the generic QAxBase::signal, see
> http://doc.qt.io/qt-5/qaxbase.html#signal
> In it, you'll see the example code for receiving "BeforeNavigate2", and
> all the other event flavors you retrieve the same way.
>
> So first, add the slot declaration to your MainWindow class:
> ...
> private slots:
> void slot(const QString& name,int argc, void* argv);
> ...
>
> then connect your m_activeX object to that signal, here is some sample
> code added after your " mainwindow->setCentralWidget(m_tabWidget);":
>
> ...
> connect(m_activeX,SIGNAL(signal(const 
> QString&,int,void*)),this,SLOT(slot(const
> QString&,int,void*)));
> //connect(m_activeX,::signal,this,::slot);  //
> this is better syntax but alas will *not* compile :-(
>
> // setup a sample navigation
> QString url = "http://doc.qt.io/qt-5/qaxbase.html;;
> m_activeX->dynamicCall("Navigate(const QString&)",url);
> }
>
> // here's how to receive all of them
> // you'll have to check the name for the correct one, I'll give you 2 for
> free
> // just add the others you need...
> // note: the example in QAxBase::signal is too old to compile correctly,
> (changed below)
>
> // need this for the VARIANTARG chaps
> #include "windows.h"
>
> void MainWindow::slot(const QString , int argc, void *argv)
> {
> VARIANTARG *params = (VARIANTARG*)argv;
> if (name.startsWith("BeforeNavigate2("))
> {
> // "BeforeNavigate2(IDispatch*,QVariant&,QVariant&,QVariant&,QV
> ariant&,QVariant&,bool&)"
> IDispatch *pDisp = params[argc-1].pdispVal;
> VARIANTARG URL = *params[argc-2].pvarVal;
> VARIANTARG Flags = *params[argc-3].pvarVal;
> VARIANTARG TargetFrameName = *params[argc-4].pvarVal;
> VARIANTARG PostData = *params[argc-5].pvarVal;
> VARIANTARG Headers = *params[argc-6].pvarVal;
> VARIANT_BOOL *Cancel = params[argc-7].pboolVal;
>
> QString url = QString::fromStdWString(URL.bstrVal);
> qDebug() << "BeforeNavigate2, ur" << url;
> }
>
> if (name.startsWith("NewWindow3("))
> {
> // NewWindow3(IDispatch**,bool&,uint,QString,QString)"
> IDispatch *pDisp = params[argc-1].pdispVal;
> VARIANT_BOOL* Cancel = params[argc-2].pboolVal;
> uint Flags = params[argc-3].uintVal;
> BSTR URLContext = params[argc-4].bstrVal;
> BSTR URL = params[argc-5].bstrVal;
>
> QString urlContext = QString::fromStdWString(URLContext);
> QString url = QString::fromStdWString(URL);
> qDebug() << "NewWindow3, opening" << url << "from" << urlContext;
> }
> }
> ...
>
> Good luck! Rgrds Henry
>
>
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] ActiveQt Events

2017-06-27 Thread Henry Skoglund

On 2017-06-27 10:54, neel patel wrote:

Hi All,

As I am using "QAxWidget". I took the "webbrowser" example as reference.
As I am using "QTabWidget" as mainwindow widget and adding "QAxWidget" 
as tab widget. Below is the code for reference.



 m_tabWidget = new QTabWidget(mainwindow);

 m_mainGridLayout = new QGridLayout(m_tabWidget);
 m_mainGridLayout->setContentsMargins(0, 0, 0, 0);

 m_MainTab = new QWidget(m_tabWidget);
 m_tabGridLayout = new QGridLayout(m_MainTab);
 m_tabGridLayout->setContentsMargins(0, 0, 0, 0);

 m_activeX = new WebAxWidget(m_MainTab);
 
m_activeX->setControl(QStringLiteral("{8856F961-340A-11D0-A96B-00C04FD705A2}"));

 m_activeX->setObjectName(QStringLiteral("WebBrowser"));
 m_activeX->setFocusPolicy(Qt::StrongFocus);

 m_tabGridLayout->addWidget(m_activeX, 0, 0, 1, 1);
 m_tabWidget->addTab(m_MainTab, QString());

 mainwindow->setCentralWidget(m_tabWidget);

class WebAxWidget : public QAxWidget
{
public:

 WebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0)
 : QAxWidget(parent, f)
 {
 }
}



I want to receive events like NewWindow3, NewWindow2, BeforeNavigate2 
with Qt. As such there is no signal available in "QAxWidget". How can we 
receive those signals from windows COM interface ?


Let me know reference or pointers so that i can implement and suggest in 
above code.


Thanks in Advance.


Hi, you can receive those events through the generic QAxBase::signal, 
see http://doc.qt.io/qt-5/qaxbase.html#signal
In it, you'll see the example code for receiving "BeforeNavigate2", and 
all the other event flavors you retrieve the same way.


So first, add the slot declaration to your MainWindow class:
...
private slots:
void slot(const QString& name,int argc, void* argv);
...

then connect your m_activeX object to that signal, here is some sample 
code added after your " mainwindow->setCentralWidget(m_tabWidget);":


...
connect(m_activeX,SIGNAL(signal(const 
QString&,int,void*)),this,SLOT(slot(const QString&,int,void*)));
//connect(m_activeX,::signal,this,::slot);  // 
this is better syntax but alas will *not* compile :-(


// setup a sample navigation
QString url = "http://doc.qt.io/qt-5/qaxbase.html;;
m_activeX->dynamicCall("Navigate(const QString&)",url);
}

// here's how to receive all of them
// you'll have to check the name for the correct one, I'll give you 2 
for free

// just add the others you need...
// note: the example in QAxBase::signal is too old to compile correctly, 
(changed below)


// need this for the VARIANTARG chaps
#include "windows.h"

void MainWindow::slot(const QString , int argc, void *argv)
{
VARIANTARG *params = (VARIANTARG*)argv;
if (name.startsWith("BeforeNavigate2("))
{
// 
"BeforeNavigate2(IDispatch*,QVariant&,QVariant&,QVariant&,QVariant&,QVariant&,bool&)"

IDispatch *pDisp = params[argc-1].pdispVal;
VARIANTARG URL = *params[argc-2].pvarVal;
VARIANTARG Flags = *params[argc-3].pvarVal;
VARIANTARG TargetFrameName = *params[argc-4].pvarVal;
VARIANTARG PostData = *params[argc-5].pvarVal;
VARIANTARG Headers = *params[argc-6].pvarVal;
VARIANT_BOOL *Cancel = params[argc-7].pboolVal;

QString url = QString::fromStdWString(URL.bstrVal);
qDebug() << "BeforeNavigate2, ur" << url;
}

if (name.startsWith("NewWindow3("))
{
// NewWindow3(IDispatch**,bool&,uint,QString,QString)"
IDispatch *pDisp = params[argc-1].pdispVal;
VARIANT_BOOL* Cancel = params[argc-2].pboolVal;
uint Flags = params[argc-3].uintVal;
BSTR URLContext = params[argc-4].bstrVal;
BSTR URL = params[argc-5].bstrVal;

QString urlContext = QString::fromStdWString(URLContext);
QString url = QString::fromStdWString(URL);
qDebug() << "NewWindow3, opening" << url << "from" << urlContext;
}
}
...

Good luck! Rgrds Henry

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] qtbase 5.9 is in chaos mode now

2017-06-27 Thread Liang Qi
There is a gap in 6.19-6.26, only 2 changes are merged in qtbase 5.9.

https://codereview.qt-project.org/#/q/project:qt/qtbase+branch:5.9+status:merged,n,z

And now we have about 40 changes in staged mode, I don’t see much chance to get 
them in.

https://codereview.qt-project.org/#/q/project:qt/qtbase+branch:5.9+status:open,n,z

Perhaps I can try to be the stage monkey, but I need to know which batch/set of 
changes need to be staged together. Please report here or irc, thanks.

Regards,
Liang
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development