Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML is very slow on visual studio in debug mode

QML is very slow on visual studio in debug mode

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 487 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    edcpwk
    wrote on last edited by
    #1

    Hello,

    I'm trying to load a QML file inside a C++ application made under visual studio 2013 with the code below :

    	auto *view = new QQuickView;
    	auto *context = view->rootContext();
    	view->setSource(QUrl::fromLocalFile("./qml/options.qml"));
    	QWidget *container = QWidget::createWindowContainer(view, this);
    
    	container->setMinimumSize(200, 200);
    	container->setMaximumSize(600, 600);
    
    	ui.horizontalLayout->addWidget(container);
    

    This works well but in debug mode this is awfully slow.
    There's no change switching from QT 5.4 to 5.7.
    On QtCreator, the display remains fluid in either mode.

    Is there something special to do for visual studio ?

    Thanks,

    Eddy

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved