Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Work with bluetooth

    3
    0 Votes
    3 Posts
    2k Views
    F
    You can try the following if targeting for Windows which is in Qt C++: https://projects.forum.nokia.com/qbluetooth Mind that it's not the official QBluetooth from the Qt SDK. The only problem is that it doesn't support the Microsoft Bluetooth Stack but only Bluesoleil. So if you want to use it you need to have Bluesoleil installed (https://projects.forum.nokia.com/qbluetooth/wiki#Otherusefulinformation)
  • QTabWidget: QLabel sometimes paints what's on the last tab

    8
    0 Votes
    8 Posts
    4k Views
    C
    Oops, missing part of tabtest.cpp: @ void TabTest::update_test_label() { int i = rand() % 100 + 1; QString s = QString("%1").arg(i,3); testlabel->setText( s ); i = rand() % 100 + 1; s = QString("%1").arg(i,3); testlabel2->setText( s ); i = rand() % 100 + 1; s = QString("%1").arg(i,3); testlabel3->setText( s ); i = rand() % 100 + 1; s = QString("%1").arg(i,3); testlabel4->setText( s ); i = rand() % 100 + 1; s = QString("%1").arg(i,3); testlabel5->setText( s ); } @
  • Best way to implement Window menu

    4
    0 Votes
    4 Posts
    2k Views
    G
    Sorry, I have no clue, why this is not a slot. You might want to file a suggestion on the "public bugtracker":https://bugreports.qt.nokia.com/. So at least it will be reconsidered for the upcoming Qt 5 release later this year.
  • [SOLVED] "Can't start because QtGui4.dll is missing from your computer"

    6
    0 Votes
    6 Posts
    68k Views
    V
    The method you stated is working. I started working on another project but had to come back to this issue. I added my Qt library directory to the environment variable PATH. Works like a charm now. Thank you!
  • [Solved] QTableWidget select rows without vertical header

    2
    0 Votes
    2 Posts
    4k Views
    S
    Forget it! I figured it out, so in case it helps anyone... I just needed to turn OFF the ItemIsSelectable flag (its off by default but I was turning it on). Now when I click any cell my row is selected (because I setSelectionBehavior(QAbstractItemView::SelectRows) left selection mode as the default. I was setting one option too many. Now I have my vertical header hidden and I can still select rows by clicking a single item in the row.
  • QGraphicsView Draw line after point selection

    3
    0 Votes
    3 Posts
    6k Views
    J
    If your 'view' is centeral widget of QMainWidget, you will not see any line which is drawed in QMainWidget::paintEvent() override function. Instead, how about just doing it in your QGraphicsView derived GraphicsView::paintEvent() or just scene->addLine(...) ?
  • Can we have a Qt lib for a non-Qt 3rd party app?

    2
    0 Votes
    2 Posts
    1k Views
    J
    Non exactly, but you can some hints from QtMigrate framework(ask google). Though QtMigrate itself is for win32 framework but, you may find a clue(see the qt plugin dll example there)
  • How to get both index and selected item at asame time in qtreewidget?

    3
    0 Votes
    3 Posts
    7k Views
    B
    this is a two step problem, i think: first: QTreeWidget::selectedItems () this will return in your case a QList with one item and the QTreeWidget::indexFromItem ( QTreeWidgetItem * item, int column = 0 ) will get the index for you
  • SOLVED: Pattern BrushStyle drawn "spotty" or incomplete

    2
    0 Votes
    2 Posts
    2k Views
    A
    Seems that brush patterns don't work very well with transformations...or the docs simply don't mention how transformations affect brush patterns. Leaving the painter in its original transform, and mapping the rectangles myself does the trick.
  • Starting with QT and doubts about C++

    10
    0 Votes
    10 Posts
    4k Views
    B
    [post removed by mariusg/admin - get the books through proper channels please - http://developer.qt.nokia.com/books is a good starting point]
  • How to add a combo box and a text box inside a tree widget?

    14
    0 Votes
    14 Posts
    9k Views
    A
    i didnt understand how to upload photo here....so uploaded in picassa...plz follow here-->https://picasaweb.google.com/dilip.sn/January32012#5693356856945547426
  • QScriptContext thisObject in custom include function

    2
    0 Votes
    2 Posts
    2k Views
    F
    After further investigating this issue, it gets even more unclear what its cause or solution might be. The following example demonstrates its effect: Suppose to have 2 script files: A.js and B.js. Script A includes B and calls functions of B: B.js: @function test1() { print("test1.this: " + this); test2(); } function test2() { print("test2.this: " + this); }@ A.js: @include("B.js"); test2(); // outputs test2.this correctly test1(); // outputs test1.this correctly, BUT causes an exception in test2 because this is not known there!?!@ Might this be a Qt bug?
  • [SOLVED] QDir::exists(const QString & name) and dirs

    4
    0 Votes
    4 Posts
    8k Views
    T
    Thanks, Volker. It was informative.
  • QRegExp for everything inside [ ]

    2
    0 Votes
    2 Posts
    2k Views
    L
    You'll just have to escape <code>[</code> and <code>]</code> within your pattern, as they are used to group expressions. @ QRegExp pattern("\[.*\]"); // double slash, as you want to escape the // brackets within your pattern, not within // the string passed to the ctor @ Be aware that if there are nested brackets you'll receive a greedy match, as QRegExp::setMinimal() is false per default.
  • Open GL segmentation fault

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QT and OpenStreetMaps

    2
    0 Votes
    2 Posts
    1k Views
    V
    I think "this thread":http://developer.qt.nokia.com/forums/viewthread/1785 can help you.
  • 0 Votes
    3 Posts
    2k Views
    K
    Noticed that I had accidently overloaded connectToHostImplementation instead of overriding it. Thanks for the help, now it works :)
  • Minimum OpenGL version required by Qt

    4
    0 Votes
    4 Posts
    3k Views
    B
    For OpenGL from 1.1 For OpenGL ES from 1.0 ( http://developer.qt.nokia.com/doc/qt-4.8/qglformat.html )
  • [SOLVED] QTcpServer QObject::connect() error

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Problem with QGLWidget::renderPixmap over remote X11 (GLX)

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied