Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.1k Topics 454.7k Posts
QtWS25 Last Chance
  • Mac: building plugandpaint. QT_BUILD_TREE issue

    2
    0 Votes
    2 Posts
    2k Views
    B
    I don't believe setting QT_BUILD_TREE correctly would resolve this as libpnp_basicictools_debug is not in any path with 'examples' in it. I've downloaded the binary version and qtdemo now runs properly.
  • 0 Votes
    13 Posts
    6k Views
    F
    Volker's code works fine for me on Qt 4.7.0, winXP. It seems your crash isn't related to openUrl()?
  • [Solved]Qt generic project

    20
    0 Votes
    20 Posts
    7k Views
    G
    qmake has the -o switch to specify where the output should go. Maybe this can work for you.
  • How To Signal QTreeView To ScrollTo Selected Item In Model?

    5
    0 Votes
    5 Posts
    9k Views
    T
    Thanks, Andre. I found the discussion: http://developer.qt.nokia.com/forums/viewthread/5944/ I'll read it.
  • Write Symbol

    11
    0 Votes
    11 Posts
    6k Views
    P
    Oh, I am sorry...Yes, that way, should be better to use images (but IMHO it's still better to use fonts :-D :-D )
  • Showing of drawn rectangles

    4
    0 Votes
    4 Posts
    3k Views
    P
    bq. Rectangles are drawn when you release the mouse button. I want rectangles to be shown when moving the mouse. Your last sentence is quite unlogical... If you want to see anything, you have to draw it. If you want to draw, when you move your mouse, use that event as I mentioned above. On painting it uses paintEvent...but... You are not allowed to draw in QGraphicsScene, because it's just map (what come where, and what will stay at top, and so on...), it's not a widget, you have to draw in @void QGraphicsItem::paint()@ or in @QGraphicsView::paintEvent(...)@ , which gives painter to all used objects/items (QGraphicsItem through paint() method) My advice is: You shouldn't work in QGraphicsScene but in QGraphicsView, it'll be better...And even better will be, to work in QGraphicsItem... Best wishes...
  • [solved] Connect from a QListView doesn't work

    7
    0 Votes
    7 Posts
    5k Views
    E
    Thank you all for your replies. The const QModelIndex& solution worked well for me.
  • Gesture conflicts with unity

    4
    0 Votes
    4 Posts
    2k Views
    T
    [quote author="Peppy" date="1305661004"]Question is: Does it Ubuntu or your software?[/quote] Not sure that I well understand your question. Do Ubuntu or my software has to disable the multitouch? Of course I would prefer if the software could. But as Kidproquo said, it is probably not possible.. Actually, even disabling those gestures is very tricky! I have a thread on the ubuntu forum asking how to do so..
  • QGraphicsView performance [solved]

    4
    0 Votes
    4 Posts
    4k Views
    J
    Thanks for the suggestions. Your first suggestion gave a slight performance improvement, but it wasn't huge because most of the items change every time anyway. What helped more was a poor-man's version of your second and third suggestion: instead of creating one QGraphicsItem and switching brushes, I'm now creating QGraphicsItems of every color and switching between them using setVisible. This is much less memory-efficient than using a single cached QPixmap and it requires more start-up time (because Qt has to draw hundreds of identical ellipses), but it was easy to write and the performance is good enough for now. Thanks for your help.
  • Remove scrollbar from combobox dropdown

    2
    0 Votes
    2 Posts
    4k Views
    ?
    If Qt Designer doesn't have an option for that, I would try to configure those QScrollbar as 1px wide, or maybe transparent colored. Maybe this helps: http://developer.qt.nokia.com/forums/viewthread/5509 --
  • QSettings : custom ini file

    7
    0 Votes
    7 Posts
    4k Views
    G
    ini files work without problems for me. You'll have to use QSettings setValue and value methods.
  • Set display precision different from internal precision in QDoubleSpinBox

    17
    0 Votes
    17 Posts
    15k Views
    P
    You can hack it! Set up decimals to 4, but allows placing just 3, so it shouldn't round value...I think :)
  • New to Qt

    4
    0 Votes
    4 Posts
    2k Views
    C
    I think the QtQuick/QML here is for you.And you can use Qt C++ as backend to process data.
  • Linking 2 QSpinBoxes

    6
    0 Votes
    6 Posts
    3k Views
    T
    I made a mistake - it was compiling! The program was just crashing when I opened the dialog. But I have fixed the problem now. I removed all the code for connecting the QSpinBoxes out of MyUi_NewBDDialog and into MyForm.init() (after the pointer members had been instantiated). This meant I could get rid of MyUi_NewBDDialog completely and go back to using it's parent class Ui_NewBackdropDialog. I still don't understand why the old way would allow the QSpinBox to alter a member QCheckBox, and not another QSpinBox. Or why both QSpinBoxes could be altered by another QPushBox. But the codes deleted now so I can't show you. But I'm happy it works now! It's so cool how code drops away when the right solution is found. I nearly always find it happens like this. Thanks for your help guys and again I'm sorry for my hopelessly written question.
  • Phonon::VideoPlayer does not display video

    5
    0 Votes
    5 Posts
    6k Views
    J
    I download the latest version of Qt (QtSDK V1.1) and all is fine now ! Thanks to all of you (especially vinb) !
  • Using Multitouch features on Linux

    3
    0 Votes
    3 Posts
    5k Views
    T
    Hello everyone. I got the same problem. X-server frequently crashes on Ubuntu 11.04 64 bits. I'm just running the fingerpaint example.
  • 0 Votes
    2 Posts
    3k Views
    F
    Everything is ok now! Just my fault!. The code is correct
  • [Moved] taking the value of a pixel from an image

    8
    0 Votes
    8 Posts
    5k Views
    L
    The code you posted does not really give a complete picture of your widgets and how they are related. But since you are getting the event in your QMainWindow subclass, you will get them in QMainWindow coordinates. If you use a QLabel to display the image, you should get the event there instead. And the transformation between top-left origin and bottom left-origin is just simple maths - nothing to do with Qt, really. Something like y = height - y.
  • Access all dialogs of application

    5
    0 Votes
    5 Posts
    3k Views
    S
    Thank you. It works well. I write a subclass of QDialog and add retranslateUI method to it. that method simply calls ui->retranslateUi(). I subclass all my dialogs from it. iterating over children of main window of type DialogProxy*, program calls that method: @ QList<DialogProxy*> list = this->findChildren<DialogProxy*>(); for(int i=0; i<list.size(); i++) list.at(i)->retraslateUI(); @ when clicking on the change language menu item all open dialogs are translated.
  • Why QTime::start() giving segmentation fault in amd64 architecture?

    4
    0 Votes
    4 Posts
    3k Views
    M
    I built the whole project in amd64 bit platform. And while running the executables the error occurred. If comment-out those lines for QTime then it's running correctly. Ok. I will post the back trace. @peppe Can you tell me what is "valgrind log" and how to get it. [quote author="peppe" date="1305564304"] a valgrind log[/quote]