Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • QScriptEngine issue

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Bug when customizing QPushButton?

    4
    0 Votes
    4 Posts
    3k Views
    B
    Thanks - bug reported: https://bugreports.qt.nokia.com/browse/QTBUG-22929
  • Performing/ignoring modifiers in a QKeySequence?

    4
    0 Votes
    4 Posts
    3k Views
    W
    Shameless bump.
  • Unavailable synchronous data using QSharedData

    2
    0 Votes
    2 Posts
    2k Views
    K
    I am a step further. I figured out that the allocated memory by the float gets invalid for some reason. I do not know enough about it to say why. Maybe somebody can tell me, so I do understand more what I am doing. What helped at least with =operator was deep copying the floats @ MyMap &MyMap::operator=(const MyMap &rhs) { if (this != &rhs) { _data->_map.clear(); QMapIterator<int, QVector< const float *> > i(rhs._data->_map); while(i.hasNext()) { QVector< const float *> tmp = (i.next()).value(); QVector< const float *> tmp2; QVectorIterator< const float *> j(tmp); while(j.hasNext()) { const float *p = j.next(); float *tmp3 = new float[3]; if(p != 0) { mempcpy(tmp3,p, 3); delete []p; } tmp2.append(tmp3); } _data->_map.insert(i.key(),tmp2); } } } @ I do not know if I did it right, some feedback would be great!
  • Difference between double click and Open button in QFileDialog

    8
    0 Votes
    8 Posts
    5k Views
    F
    Could it be a problem with the timing you are opening the files? Another trial that comes into my mind is to exclude the open dialog at all and simulate the continue file selection with a cycle, to see if the libvlc cannot handle a rapid file change. Just a thought.
  • Application is getting crashed ..while adding elements to QTableView

    2
    0 Votes
    2 Posts
    2k Views
    F
    Silly question: are you sure there is not a delete somewhere that is causing the crash? Usually this happens if you reference a memory location that no longer exists (or never existed).
  • How to manually wrap a plain QStaticText?

    5
    0 Votes
    5 Posts
    3k Views
    A
    Sounds like a manual wrap is not intended for plain text. I have to say, QTextOption::ManualWrap raised some expectations, although the documentation does say "Same as QTextOption::NoWrap" I don't really get it, I have to admit. Why make a separate enum value that, from it's name, suggests a different behaviour, then say "it's the same as a different enum value".
  • [SOLVED]Qvector Problem instansiate Thanks ALL

    31
    0 Votes
    31 Posts
    15k Views
    T
    Volker I got it solved and it had a Nullpointer in another place so this worked fine but some dependent functions made some errors to this. //T
  • How to disable antialiasing when drawing text

    3
    0 Votes
    3 Posts
    3k Views
    I
    I tried. It does not work. [quote author="Andre" date="1322471848"]You can also disable antialiasting as a [[doc:QPainter]] render hint, I believe. [/quote]
  • How to Hide an applications from taskmanager ?

    4
    0 Votes
    4 Posts
    4k Views
    A
    Let's just say that Qt does not support this functionality. Any solution you implement will be a platform-dependent solution.
  • Copy & paste for UserTextObjects in QTextEdit

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to use opengl on qt ?

    2
    0 Votes
    2 Posts
    2k Views
    Q
    Maybe using Signals and Slots for timing more preferred?
  • Disabled but selectable Qlistwidgetitem

    8
    0 Votes
    8 Posts
    9k Views
    B
    I did try both of them ... 1) Double click & 2) Two-Pane display ... I just felt that popups are bit unique & different than the 2-pane display in terms of its look and feel... meaning that, user can click anywhere outside the popup window to close it automatically. (not required to click on close button). These kind of UI is something which user might not see very often. Thanks a lot for ur ideas Andre and Volker ... anyways, now that I have both of these UI, let me wait and see which one of these to use & go ahead ;)
  • [Solved]How can I change the mouse cursor to busy state ?

    5
    0 Votes
    5 Posts
    20k Views
    Q
    Is there simpler(standard) way to animate cursor?
  • Unresolved externals when building using custom widget

    4
    0 Votes
    4 Posts
    3k Views
    H
    It works when adding source files to my app.. Must be some problem with the way i created lib file i guess..
  • [SOLVED] How to clear a lineEdit when it is clicked?

    3
    0 Votes
    3 Posts
    6k Views
    L
    [quote author="task_struct" date="1322424422"]Hello, I think "placeholderText":http://doc.qt.nokia.com/latest/qlineedit.html#placeholderText-prop is what you're looking for.[/quote] That's exactly what i want. Thank you a lot! :)
  • [SOLVED] QThread Segfault on Linux

    6
    0 Votes
    6 Posts
    5k Views
    G
    Can you provide us the source of your test app? Also, see the DocNotes at the end of the [[Doc:QNetworkAccessManager]] API docs for same short, yet complete samples on how to use QNAM.
  • Missing Expected Behaviour in Qt Designer

    6
    0 Votes
    6 Posts
    3k Views
    S
    Tobias, Ok, I'll be doing this immediately. Thanks
  • Multithreaded multi-MDI app

    11
    0 Votes
    11 Posts
    5k Views
    A
    [quote author="Volker" date="1322420982"] [quote author="Andre" date="1322415174"]Yes, rendering into a QImage at least is fully supported in a thread. [/quote] Can we use a QPainter on that too? Like this: @ QImage img; QPainter painter(image); painter.drawLine(...); // etc. @ [/quote] You certainly can! André
  • Using compiler switches with Qt Qmake

    4
    0 Votes
    4 Posts
    4k Views
    S
    Volker, Koahnig, It worked. Thank You