Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • [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
  • Removing tree node not effecting

    7
    0 Votes
    7 Posts
    2k Views
    A
    thanks a lot...:)
  • Style of focus frame

    1
    0 Votes
    1 Posts
    966 Views
    No one has replied
  • Translating supportedDocumentFormats() into string for saveFileDialog

    2
    0 Votes
    2 Posts
    1k Views
    A
    AFAIK, there is no other way than the way you describe.
  • 0 Votes
    3 Posts
    5k Views
    S
    Forgot to include that QtSDK\MinGW\bin was included in my path. Could there be something wrong with the dll?